/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.guest.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.guest.entity.UsAttendanceGuest;
import com.thinkgem.jeesite.modules.guest.dao.UsAttendanceGuestDao;
import com.thinkgem.jeesite.modules.warehouse.entity.BIWarehouseKpiData;

/**
 * 美国外包Service
 * @author hui.li
 * @version 2016-09-24
 */
@Service
@Transactional(readOnly = true)
public class UsAttendanceGuestService extends CrudService<UsAttendanceGuestDao, UsAttendanceGuest> {
    @Autowired
    private UsAttendanceGuestDao dao;
	public UsAttendanceGuest get(String id) {
		return super.get(id);
	}
	
	public List<UsAttendanceGuest> findList(UsAttendanceGuest usAttendanceGuest) {
		return super.findList(usAttendanceGuest);
	}
	
	public Page<UsAttendanceGuest> findPage(Page<UsAttendanceGuest> page, UsAttendanceGuest usAttendanceGuest) {
		return super.findPage(page, usAttendanceGuest);
	}
	
	@Transactional(readOnly = false)
	public void save(UsAttendanceGuest usAttendanceGuest) {
		super.save(usAttendanceGuest);
	}
	@Transactional(readOnly = false)
    public void batchInsert(List<UsAttendanceGuest> usAttendanceGuest) {
	    dao.batchInsert(usAttendanceGuest);
    }
	
	@Transactional(readOnly = false)
	public void delete(UsAttendanceGuest usAttendanceGuest) {
		super.delete(usAttendanceGuest);
	}
	
	@Transactional(readOnly = false)
	public Page<BIWarehouseKpiData> findAllListBIWarehouseKpi(Page<BIWarehouseKpiData> page ,BIWarehouseKpiData data) {
		data.setPage(page);
		page.setList(dao.findAllListBIWarehouseKpi(data));
		return  page;
	}
	
	@Transactional(readOnly = false)
	public List<BIWarehouseKpiData> findAllListBIWarehouseKpiGuest(BIWarehouseKpiData data) {
		return  dao.findAllListBIWarehouseKpi(data);
	}
	
	@Transactional(readOnly = false)
	public int updateStatus() {
		return dao.updateStatus();
	}
	
}